package com.code.day10.reflectss;

import lombok.Getter;
import lombok.Setter;

public class Person {
    @Getter
    @Setter
    private String name;
    private int age;
    public Person() {

    }
    private Person(String name) {
        this.name = name;
    }
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void method(int age) {
        System.out.println("Person_method " + age);
    }
    public void method(){
        System.out.println("Person_method" + this.name);
    }
    @Override
    public String toString() {
        return "Person{" + "name=" + name + ", age=" + age + '}';
    }
}
